#include "tsound.h"

TSound::TSound()
{
    efect = NULL;
    FileName = "";

}

TSound::TSound(std::string filename)
{
    FileName = filename;
    efect = Mix_LoadWAV(FileName.c_str());
}

TSound::~TSound()
{

}

int
TSound::play()
{
    return Mix_PlayChannel(1, efect, 0);
}
